package com.dl.study.builder.payload.task;

import java.util.List;

/**
 * create by chongyahhh
 * 2020/4/4
 */
public class TaskQueryPayload {
    private String assigneeId;
    private List<String> groups;
    private String processInstanceId;
    private String parentTaskId;
    private String taskDefinitionKey;
    private String processDefinitionKey;

    public TaskQueryPayload() {
    }

    public String getAssigneeId() {
        return assigneeId;
    }

    public void setAssigneeId(String assigneeId) {
        this.assigneeId = assigneeId;
    }

    public List<String> getGroups() {
        return groups;
    }

    public void setGroups(List<String> groups) {
        this.groups = groups;
    }

    public String getProcessInstanceId() {
        return processInstanceId;
    }

    public void setProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    public String getParentTaskId() {
        return parentTaskId;
    }

    public void setParentTaskId(String parentTaskId) {
        this.parentTaskId = parentTaskId;
    }

    public String getTaskDefinitionKey() {
        return taskDefinitionKey;
    }

    public void setTaskDefinitionKey(String taskDefinitionKey) {
        this.taskDefinitionKey = taskDefinitionKey;
    }

    public String getProcessDefinitionKey() {
        return processDefinitionKey;
    }

    public void setProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
    }

    public TaskQueryPayload withAssigneeId(String assigneeId) {
        this.assigneeId = assigneeId;
        return this;
    }


    public TaskQueryPayload withGroups(List<String> groups) {
        this.groups = groups;
        return this;
    }

    public TaskQueryPayload withProcessInstanceId(String processInstanceId) {
        this.processInstanceId = processInstanceId;
        return this;
    }

    public TaskQueryPayload withParentTaskId(String parentTaskId) {
        this.parentTaskId = parentTaskId;
        return this;
    }

    public TaskQueryPayload withTaskDefinitionKey(String taskDefinitionKey) {
        this.taskDefinitionKey = taskDefinitionKey;
        return this;
    }

    public TaskQueryPayload withProcessDefinitionKey(String processDefinitionKey) {
        this.processDefinitionKey = processDefinitionKey;
        return this;
    }

}
